﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.ComponentModel;
namespace BallData
{
    public class Match_FilterItemBind : INotifyPropertyChanged
    {
        public String szTitle { get; set; }

        public String m_szFilter;
        public String szFilter
        {
            get
            {
                return this.m_szFilter;
            }
            set
            {
                if (this.m_szFilter != value)
                {
                    this.m_szFilter = value;
                    OnPropertyChanged("szFilter");
                }
            }
        }

        public String szSelectFilterType{get;set;}

        public Boolean m_bFilter;
        public Boolean bFilter
        {
            get
            {
                return this.m_bFilter;
            }
            set
            {
                if (this.m_bFilter != value)
                {
                    this.m_bFilter = value;
                    OnPropertyChanged("bFilter");
                }
            }
        }

        private List<String> m_FilterTypes = new List<String>();

        public List<String> FilterTypes
        {
            get { return m_FilterTypes; }
            set { m_FilterTypes = value; }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = this.PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion

    }
}
